import axios from "axios";
let list = (params) => axios.get('/article/list', { params });
let tag = (params) => axios.get('/tag/list', { params });
// 给指定id文章标记标签
let addtag = (data) => axios.post('/article/tag', data);
let edit = (data) => axios.post('/article/edit', data);
let detail = (params) => axios.get('/article/detail', { params });
let add = (data) => axios.post('/article/release', data);
let remove = (data) => axios.post('/article/remove', data);

export default {
    list, tag, edit, detail, add, remove,addtag
}